package com.stedu.mall.common.service;

import com.stedu.mall.common.bean.Category;
import com.stedu.mall.common.exception.SteduException;

import java.util.List;

public interface CategoryService {
    //增加
    boolean insert(Category category) throws SteduException;

    //根据分类id删除
    boolean delete(Integer id) throws SteduException;

    //根据分类id修改
    boolean update(Category category) throws SteduException;

    //分页条件搜索
    Object selectByCondition(Category condition, Integer pageNum, Integer pageSize);

    //根据分类id查询
    Category selectById(Integer id);

    //根据父分类id查询
    List<Category> selectByParentId(Integer parentId);
}
